package a2;

public class Test {
    public static void main(String[] args) {
        System.out.println(Father.class.isAnnotationPresent(InheritedAnnotation.class));
        System.out.println(Father.class.isAnnotationPresent(OtherAnnotation.class));
        System.out.println(Son.class.isAnnotationPresent(InheritedAnnotation.class));
        System.out.println(Son.class.isAnnotationPresent(OtherAnnotation.class));
    }
}
